-- GENERATED SPELL FOR [Pridewing Patriarch] --


function spell0_4015(pUnit, Event) --@Poison,n/a--
pUnit:FullCastSpellOnTarget(744,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_4015', 30000, 1)
end

function Sorts_4015(pUnit, Event)
local choix_sorts_4015 = math.random(0, 0)
if choix_sorts_4015 == 0 then
pUnit:RegisterEvent('spell0_4015', 1, 1)
end
end

function mob4015_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_4015', math.random(1500, 3000), 1)
end

function mob4015_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4015_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob4015_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(4015, 1, 'mob4015_Action')
RegisterUnitEvent(4015, 2, 'mob4015_Leave')
RegisterUnitEvent(4015, 3, 'mob4015_Kill')
RegisterUnitEvent(4015, 4, 'mob4015_Die')
